#include <stdio.h>

struct stu{
    const char * name;
    int num;
    int age;
    void (*p)();
};

void print(){
    printf("hello\n");
}
int main(void){
    struct stu stu1;
    stu1.name = "jack";
    stu1.num = 100;
    stu1.age = 18;
    printf("姓名 %s,\n学号 %d,\n年龄 %d\n",
           stu1.name,stu1.num,stu1.age);
    stu1.p = print;
    stu1.p();
    return 0;
}
